package com.aorise.model.migration;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @Author:cat
 * @Desicription: 点位迁建新增入参实体类
 * @Date:Created in 2019-06-01
 * @Modified By:
 */
@Data
@ApiModel
public class MigrationAddVO {

    @ApiModelProperty (value = "主键")
    private Integer id;

    @ApiModelProperty (value = "迁建开始时间")
    @NotNull(message = "迁建开始时间不能为空")
    private String startTime;

    @ApiModelProperty (value = "迁建结束时间")
    @NotNull(message = "迁建结束时间不能为空")
    private String endTime;

    @ApiModelProperty (value = "迁建前地址")
    @NotNull(message = "迁建前地址不能为空")
    @Size(max = 50,message = "迁建前地址不能超过50字")
    private String hisAddress;

    @ApiModelProperty (value = "迁建地址")
    @NotNull(message = "迁建地址不能为空")
    @Size(max = 50,message = "迁建地址不能超过50字")
    private String newAddress;

    @ApiModelProperty (value = "迁建前经度")
    private String hisLongitude;

    @ApiModelProperty (value = "迁建前纬度")
    private String hisLatitude;

    @ApiModelProperty (value = "迁建经度")
    private String newLongitude;

    @ApiModelProperty (value = "迁建纬度")
    private String newLatitude;

    @ApiModelProperty (value = "迁建原因")
    @NotNull(message = "迁建原因不能为空")
    @Size(max = 200,message = "迁建原因不能超过200字")
    private String reason;

    @ApiModelProperty (value = "创建人ID")
    @NotNull(message = "创建人ID不能为空")
    private Integer createUser;

    @ApiModelProperty (value = "迁建设备ID")
    @NotNull(message = "迁建设备ID不能为空")
    private String cameraIds;

    @Override
    public String toString() {
        return "MigrationAddVO{" +
                ", id='" + id + '\'' +
                ", startTime='" + startTime + '\'' +
                ", endTime='" + endTime + '\'' +
                ", hisAddress='" + hisAddress + '\'' +
                ", newAddress='" + newAddress + '\'' +
                ", hisLongitude='" + hisLongitude + '\'' +
                ", hisLatitude='" + hisLatitude + '\'' +
                ", newLongitude='" + newLongitude + '\'' +
                ", newLatitude='" + newLatitude + '\'' +
                ", reason='" + reason + '\'' +
                ", createUser=" + createUser +
                ", cameraIds='" + cameraIds + '\'' +
                '}';
    }
}
